package com.cjj.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 评价表
 * </p>
 *
 * @author admin
 * @since 2025-10-25
 */
@Data
@TableName("comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评价ID
     */
    @TableId(value = "commentId", type = IdType.AUTO)
    private Long commentId;

    /**
     * 评价用户ID
     */
    @TableField("userId")
    private Long userId;

    /**
     * 订单ID
     */
    @TableField("orderId")
    private Long orderId;

    /**
     * 评价内容
     */
    @TableField("content")
    private String content;

    /**
     * 评分（1-5）
     */
    @TableField("score")
    private Byte score;

    /**
     * 被评价用户ID
     */
    @TableField("targetUserId")
    private Long targetUserId;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("updateTime")
    private LocalDateTime updateTime;

    /**
     * 状态：1-正常，0-隐藏
     */
    @TableField("status")
    private Byte status;
}
